<template>
  <div class="layout">
    <el-container class="layout_container">
      <el-aside class="sidebar_box">
        <Sidebar></Sidebar>
      </el-aside>
      <el-container>
        <el-header>
          <Headers></Headers>
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>

    <div class="layout_pc">

      <div class="layout_pc_title">
        <span>请于PC端打开</span>
        <i class="el-icon-close layout_pc_icon"></i>
      </div>
      <div class="layout_pc_img">
        <img src="http://login.114my.cn/memberpic/lixiaohua/uploadfile/image/20210724/20210724192011_291370743.jpg">
        <img src="http://login.114my.cn/memberpic/lixiaohua/uploadfile/image/20210724/20210724192010_373596721.jpg">
        <img src="http://login.114my.cn/memberpic/lixiaohua/uploadfile/image/20210724/20210724192010_930457851.jpg">
        <img src="http://login.114my.cn/memberpic/lixiaohua/uploadfile/image/20210724/20210724192012_33480834.jpg">
        <img src="http://login.114my.cn/memberpic/lixiaohua/uploadfile/image/20210724/20210724192012_2100065033.jpg">
      </div>


    </div>
  </div>
</template>

<script setup>
  import Sidebar from "@/components/sidebar.vue";
  import Headers from "@/components/headers.vue";
</script>

<style scoped lang="less">
.el-container{
  height: 100%;
  background-color: #e6f1f0;
}

.el-header, .el-footer {
  background-color: #e6f1f0;
  padding: 0;
  height: 7vh!important;

}

.el-aside {
  background-color: #e6f1f0;
  color: #333;
  text-align: center;
  width: 17.698vw!important;
}

.el-main {
  background-color: #e6f1f0;
  color: #333;
  padding: 0 2.15vw 1.2vw 2.15vw!important;
  height: 100%;
}

body > .el-container {
  margin-bottom: 40px;
}
.layout{
  height: 100%;
}

.layout_pc{
  display: none;
  padding: 0 1.5vw;

  .layout_pc_title{
    background-color: #fef0f0;
    color: #F56C6C;
    margin-top: 2vw;
    width: 100%;
    padding: 0.8vw 2.1333vw;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius:  0.5333vw;
    position: relative;
    overflow: hidden;
    opacity: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-transition: opacity .2s;
    transition: opacity .2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2vw;

    span{
      font-size: 1.5333vw;
    }

    .layout_pc_icon{
      color: #C0C4CC;
      font-size: 1.6vw;
      opacity: 1;
      cursor: pointer;
    }
  }

  .layout_pc_img{
    padding-bottom: 2vw;

    img{
      display: block;
      width: 100%;
      margin-bottom: 2vw;
      border-radius: 2vw;
    }
    img:last-child{
      margin-bottom: 0;
    }
  }
}




@media screen and (max-width: 1024px){
  .layout_container {
    display: none;
  }
  .layout_pc{
    display: block;
  }
}

</style>